cmake_minimum_required(VERSION 3.8)
project(msg-hub)

set(CMAKE_CXX_STANDARD 17)

include_directories("/usr/local/Cellar/glog/0.3.5_3/include")
include_directories("/usr/local/Cellar/gflags/2.2.1/include")
include_directories("/usr/local/Cellar/libevent/2.1.8/include")


link_directories("/usr/local/Cellar/glog/0.3.5_3/lib")
link_directories("/usr/local/Cellar/libevent/2.1.8/lib")
link_directories("/usr/local/Cellar/gflags/2.2.1/lib")

set(SOURCE_FILES src/main.cpp src/CTest.cpp src/CTest.h src/cmn/CUtility.cpp src/cmn/CUtility.h src/cmn/CmnDef.h)
add_executable(msghub ${SOURCE_FILES})
target_link_libraries(msghub glog pthread gflags event)